package com.dk.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("tb_feedback")
public class TbFeedback {


    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    private String username;

    @TableField(value = "message_contents")
    private String messageContents;

    @TableField(value = "message_picture")
    private String messagePicture;

    private String response;

    @TableField(value = "reply_picture")
    private String replyPicture;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    private String status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getMessageContents() {
        return messageContents;
    }

    public void setMessageContents(String messageContents) {
        this.messageContents = messageContents;
    }

    public String getMessagePicture() {
        return messagePicture;
    }

    public void setMessagePicture(String messagePicture) {
        this.messagePicture = messagePicture;
    }

    public String getResponse() {
        return response;
    }

    public void setResponse(String response) {
        this.response = response;
    }

    public String getReplyPicture() {
        return replyPicture;
    }

    public void setReplyPicture(String replyPicture) {
        this.replyPicture = replyPicture;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public TbFeedback(Long id, String username, String messageContents, String messagePicture, String response, String replyPicture, Date createTime, String status) {
        this.id = id;
        this.username = username;
        this.messageContents = messageContents;
        this.messagePicture = messagePicture;
        this.response = response;
        this.replyPicture = replyPicture;
        this.createTime = createTime;
        this.status = status;
    }

    public TbFeedback() {
    }
}
